package com.smallrig.mall.template.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lry
 * @since 2022-08-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="TOrder对象", description="")
public class TOrder extends Model {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer userId;

    private Integer productId;

    private Integer count;

    private BigDecimal money;

    private Integer status;

    private LocalDateTime createTime;

    private static final DateTimeFormatter DATE_TIME_FORMAT = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

//    public String getCreateTime() {
//        return  DATE_TIME_FORMAT.format(createTime);
//    }


}
